home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / b / b.lha / B / src / bint / b0con.h < prev    next >
C/C++ Source or Header  |  1988-11-24  |  2KB  |  63 lines

  1. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  2.  
  3. /*
  4.   $Header: b0con.h,v 1.4 85/08/26 10:42:23 timo Exp $
  5. */
  6.  
  7. /* Configuration file: some easy changes to the system                      */
  8. /* As much as possible, this is done automatically these days               */
  9. /* You only need to change this file under rare circumstances               */
  10.  
  11. /* At the end, this file #includes another file, config.h, which is       */
  12. /* generated automatically (by running mkconfig).  Most machine-dependent   */
  13. /* changes are put there.                                                   */
  14.  
  15. /* VOID is used to keep lint quiet(er)                                      */
  16. /* (This could be moved to "b.h", as it is never necessary to change it)    */
  17. #ifdef lint
  18. #define VOID (void)
  19. #else
  20. #define VOID /*empty*/
  21. #endif
  22.  
  23. /* some un*xes demand that you reset stdin in some way if you get eof, and  */
  24. /* want to read from it still. If yours doesn't, delete "clearerr(stdin)"   */
  25. /* Actually, it never harms, so why should you want to delete it?           */
  26. #define CLEAR_EOF clearerr(stdin)
  27.  
  28.  
  29. /* Miscellaneous definitions*/
  30. typedef int expint;        /*The 2nd argument of frexp points to this */
  31.                 /*(see manual page frexp(3)).              */
  32.                 /*On some 68K systems must be short (foo!) */
  33.  
  34. #define Maxtrig 1e16        /*Max x for sin(x), cos(x), tan(x)         */
  35.                 /*(Can anybody find a way to compute this  */
  36.                 /*automatically?)                          */
  37.  
  38. #ifdef IBMPC
  39. #define Maxrefcnt 255
  40. #else
  41. #define Maxrefcnt Maxintlet
  42. #endif
  43.  
  44. #define MaxSmallInt (BASE-1) /* This must be so! */
  45. #define MinSmallInt (-BASE) /* This must be so!!! */
  46.  
  47. #ifndef INTEGRATION
  48. #define CMBUFSIZE 1000        /*Buffer used for commands*/
  49. #define RDBUFSIZE 1000        /*Buffer used for reading*/
  50. #else
  51. #define CMBUFSIZE 200        /*Buffer used for commands*/
  52. #define RDBUFSIZE 100        /*Buffer used for reading*/
  53. #endif
  54.  
  55. #ifdef unix
  56. #define SEED getpid()        /*Any suitable random int (eg date or time) */
  57.                 /*to start the random number generator with */
  58. #else
  59. #define SEED getseed()
  60. #endif
  61.  
  62. #include "config.h"        /* Chain to real machine dependencies       */
  63.